package com.demo.controller;

import com.demo.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Program: SpringCloudAlibaba
 * @ClassName ConsumerFeignConsumer
 * @Author: liutao
 * @Description: 远程服务调用接口
 * @Create: 2023-03-28 21:38
 * @Version 1.0
 **/

@RestController
public class ConsumerFeignConsumer {
    @Autowired
    private FeignService feignService;

    @GetMapping("/test/hi")
    public String test(){
        return feignService.test("hi feign");
    }
}
